def main() -> None:
    l = [
        {
            "name": "zhangsan",
            "age": 18,
        },
        {
            "name": "lisi",
            "age": 19,
        },
        {
            "name": "wangwu",
            "age": 20,
        },
    ]
    new_l = sorted(l, key=lambda item: item["age"], reverse=True)
    print(new_l)


if __name__ == "__main__":
    main()
